ImageSeoWP\Services\BulkOptimizer A

Total Complexity 70
Dependencies 3
Dependents 1
Total lines 541
Lines of code 425
Logical lines of code 228
Comment lines 10
Methods 33
Properties 6

Methods 33

Method Rating Maintainability Complexity Lines of code
handleResolvedImage()
A
45 12 40
checkImageBatch()
A
45 7 47
start()
S
42 4 58
processImageBatch()
S
49 5 34
updateImageStatuses()
S
49 4 32
allImagesProcessed()
S
67 4 8
scheduleNextBatch()
S
53 2 22
getStatus()
S
55 2 19
getInstance()
S
70 3 6
checkOptimizerFinished()
S
62 2 12
prepareBatchData()
S
55 1 20
isValidImageType()
S
65 2 8
checkApiLimits()
S
70 2 7
getBatchId()
S
74 1 4
getDebug()
S
80 1 3
canProcessBatch()
S
74 1 4
isNextGenGallery()
S
75 1 4
hasProcessedAllBatches()
S
74 1 4
rescheduleBatch()
S
73 1 4
updateBatchStatus()
S
67 1 7
logApiError()
S
67 1 7
handleApiLimitExceeded()
S
67 1 7
sendBatchToApi()
S
65 1 10
handleMissingBatchId()
S
67 1 7
isBatchSentToProcessing()
S
74 1 4
isImageDataAvailable()
S
79 1 3
finalizeProcessing()
S
75 1 4
handleFailedImage()
S
64 1 10
getErrors()
S
74 1 4
stop()
S
63 1 10
__construct()
S
69 1 6
handleBatchDataError()
S
68 1 7
extractExtension()
S
78 1 3